package com.caipin.domain.device.nvr;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2021-10-06 11:21
 * @Description: TODO
 */
public class FaceMatchEntity {
    private String personId;

    private String imageBase64;

    private Long timestamp;

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public void setImageBase64(String imageBase64) {
        this.imageBase64 = imageBase64;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof com.caipin.domain.device.nvr.FaceMatchEntity))
            return false;
        com.caipin.domain.device.nvr.FaceMatchEntity other = (com.caipin.domain.device.nvr.FaceMatchEntity)o;
        if (!other.canEqual(this))
            return false;
        Object this$personId = getPersonId(), other$personId = other.getPersonId();
        if ((this$personId == null) ? (other$personId != null) : !this$personId.equals(other$personId))
            return false;
        Object this$imageBase64 = getImageBase64(), other$imageBase64 = other.getImageBase64();
        if ((this$imageBase64 == null) ? (other$imageBase64 != null) : !this$imageBase64.equals(other$imageBase64))
            return false;
        Object this$timestamp = getTimestamp(), other$timestamp = other.getTimestamp();
        return !((this$timestamp == null) ? (other$timestamp != null) : !this$timestamp.equals(other$timestamp));
    }

    protected boolean canEqual(Object other) {
        return other instanceof com.caipin.domain.device.nvr.FaceMatchEntity;
    }

    public int hashCode() {
        int PRIME = 59;
        result = 1;
        Object $personId = getPersonId();
        result = result * 59 + (($personId == null) ? 43 : $personId.hashCode());
        Object $imageBase64 = getImageBase64();
        result = result * 59 + (($imageBase64 == null) ? 43 : $imageBase64.hashCode());
        Object $timestamp = getTimestamp();
        return result * 59 + (($timestamp == null) ? 43 : $timestamp.hashCode());
    }

    public String toString() {
        return "FaceMatchEntity(personId=" + getPersonId() + ", imageBase64=" + getImageBase64() + ", timestamp=" + getTimestamp() + ")";
    }

    public String getPersonId() {
        return this.personId;
    }

    public String getImageBase64() {
        return this.imageBase64;
    }

    public Long getTimestamp() {
        return this.timestamp;
    }
}
